<?php
/**
 * Created by PhpStorm.
 * User: Powerless
 * Date: 2017-4-21
 * Time: 14:15
 */

namespace app\fans\controller;

use cmf\controller\HomeBaseController;
use think\Request;

class LiveController extends HomebaseController
{
    public function living()
    {
        return $this->fetch();
    }

    public function postData()
    {
        $url = input("post.url");
        $data = Request::instance()->post('data/a');
        if($url && $data){
            $this->httpPost(HTTP_WEB.$url,$data);
        }
    }
}